package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.dto.CommentDto;
import com.zhentao.model.common.manger.pojo.Comment;
import com.zhentao.model.common.manger.vo.UserCommentVo;
import com.zhentao.service.CommentService;
import com.zhentao.mapper.CommentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author lenovo
* @description 针对表【comment】的数据库操作Service实现
* @createDate 2024-10-09 16:57:45
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment>
    implements CommentService{
    @Resource
    private CommentMapper commentMapper;

    @Override
    public ResponseResult findById(CommentDto dto) {
        List<UserCommentVo> byId = commentMapper.findById(dto);
        return ResponseResult.okResult(byId);
    }
}




